home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PRIVATE.ZIP / _CLRSCR.C < prev    next >
Text File  |  1992-11-21  |  867b  |  33 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3.  
  4. #ifndef        NDEBUG
  5. char *rcsid__clrscr = "$Header: c:/curses/private/RCS/_clrscr.c%v 2.0 1992/11/15 03:24:42 MH Rel $";
  6. #endif
  7.  
  8.  
  9.  
  10.  
  11. /*man-start*********************************************************************
  12.  
  13.   PDC_clr_scrn()       - Clears the physical screen and homes the cursor.
  14.  
  15.   PDCurses Description:
  16.        This is an internal routine called by the doupdate() routines.
  17.  
  18.   PDCurses Return Value:
  19.        This routine always returns OK.
  20.  
  21.   Portability:
  22.        PDCurses        int PDC_clr_scrn( WINDOW* win );
  23.  
  24. **man-end**********************************************************************/
  25.  
  26. int    PDC_clr_scrn(WINDOW *win)
  27. {
  28.        chtype  attrs = win->_attrs;
  29.        PDC_scroll(0, 0, LINES - 1, COLS - 1, 0, attrs);
  30.        PDC_gotoxy(0, 0);
  31.        return( OK );
  32. }
  33.